![]() |
GetWindowOwnerCount |
||||
Header: | MacWindows.h | Carbon status: | Supported | |
Obtains the number of existing references to a window.
OSStatus GetWindowOwnerCount ( WindowRef window, UInt32 *outCount );
A pointer to the window whose reference (owner) count is to be determined.
A pointer to a value that, on return, contains the current number of references to the window.
A result code.
With the Mac OS 8.5 Window Manager, all windows are created with a reference count (owner count) of one. The function CloneWindow increments the number of references to a window, and the earlier function DisposeWindow decrements the number of references. When the reference count reaches zero, DisposeWindow disposes of the window.
This function is available with Mac OS 8.5 and later.
Supported in Carbon. Available in CarbonLib 1.0 and later when WindowsLib 8.5 or later is installed. Exported by CarbonLib 1.0 and later and by WindowsLib 8.5 and later.
© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)